package com.qf.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.util.Date;
import java.io.Serializable;

/**
 * (Expenditure)实体类
 *
 * @author makejava
 * @since 2023-05-16 14:03:26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("expenditure")
public class Expenditure implements Serializable {
    private static final long serialVersionUID = -27500481156304971L;

    @TableId(value = "expenditure_id", type = IdType.AUTO)
    private Integer expenditureId;

    private Integer userId;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Timestamp expenditureDate;

    private String expenditureFunctionary;

    private String expenditureType;

    private String expenditureItems;

    private Object expenditureAmount;

    private String paymentMethod;

    private String expenditureRemark;

    private Integer expenditureDelete;
    @TableField(exist = false)
    private String userName;

}

